A comment is descriptive text that you insert in the HTML to explain the code or to provide other information. A comment does not affect the appearance of the document in a browser. If you want to add more information about any file in your site, you can also use Design Notes. For more information, see About Design Notes.
See also Invisible Elements preferences.
To insert a comment:
1 | Place the insertion point where you want the comment. |
2 | Click the Comment button in the Invisibles panel of the Object palette or choose Insert > Comment. |
![]() |
To display comment markers in the Document window, choose View > Invisible Elements.
To enter comment text:
1 | Select the Comments icon. |
2 | Enter text in the Property inspector. |
![]() |
Creating a comment generates the following HTML code:
<!-- Comment text-->